//pjxh.js
//盆景协会
//获取应用实例
const app = getApp()

Page({
  data: {
    list: [{
        img: 'http://liangtiangongshe.oss-cn-beijing.aliyuncs.com/shangshi/1.png',
        position: '顾问',
        name:'张三'
      },
      {
        img: 'http://liangtiangongshe.oss-cn-beijing.aliyuncs.com/shangshi/2.png',
        position: '会长',
        name:'张三'
      }, {
        img: 'http://liangtiangongshe.oss-cn-beijing.aliyuncs.com/shangshi/3.png',
        position: '副常务',
        name: '张三'
      }, {
        img: 'http://liangtiangongshe.oss-cn-beijing.aliyuncs.com/shangshi/1.png',
        position: '副会长',
        name: '张三'
      }, {
        img: 'http://liangtiangongshe.oss-cn-beijing.aliyuncs.com/shangshi/1.png',
        position: '秘书长',
        name: '张三'
      }
    ],
    isshow: true,
    xhid: '',
  },
  onLoad: function(options) {
    var that = this;
    that.setData({
      xhid: options.xhid
    })
  },
  tomembership: function() {
    var that = this;
    that.setData({
      isshow: !that.data.isshow
    })
  },
  changeshow() {
    var that = this;
    that.setData({
      isshow: !that.data.isshow
    })
  },
  confirmdo() {
    wx.navigateTo({
      url: '/pages/membership/membership?xhid=1',
    })
  },
  onShow: function(options) {
    // var self = this
    // wx.request({
    //   url: app.serverUrl + 'Abouttwo/showPjxhlist',
    //   method: 'POST',
    //   header: {
    //     "Content-Type": "application/x-www-form-urlencoded"
    //   },
    //   data: {
    //     openid: app.openid,
    //     xhtype: '1'
    //   },
    //   success: function(res) {
    //     console.log(res);
    //     self.setData({
    //       list: res.data.data,
    //     })
    //     // console.log(res.data.data[0])
    //   },
    // })


  },


})